package com.ruoyi.expensereimbursement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.expensereimbursement.mapper.ReimbursementPaymentApplicationMapper;
import com.ruoyi.expensereimbursement.domain.ReimbursementPaymentApplication;
import com.ruoyi.expensereimbursement.service.IReimbursementPaymentApplicationService;

/**
 * 支付申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-25
 */
@Service
public class ReimbursementPaymentApplicationServiceImpl implements IReimbursementPaymentApplicationService 
{
    @Autowired
    private ReimbursementPaymentApplicationMapper reimbursementPaymentApplicationMapper;

    /**
     * 查询支付申请
     * 
     * @param paymentApplicationId 支付申请主键
     * @return 支付申请
     */
    @Override
    public ReimbursementPaymentApplication selectReimbursementPaymentApplicationByPaymentApplicationId(Long paymentApplicationId)
    {
        return reimbursementPaymentApplicationMapper.selectReimbursementPaymentApplicationByPaymentApplicationId(paymentApplicationId);
    }

    /**
     * 查询支付申请列表
     * 
     * @param reimbursementPaymentApplication 支付申请
     * @return 支付申请
     */
    @Override
    public List<ReimbursementPaymentApplication> selectReimbursementPaymentApplicationList(ReimbursementPaymentApplication reimbursementPaymentApplication)
    {
        return reimbursementPaymentApplicationMapper.selectReimbursementPaymentApplicationList(reimbursementPaymentApplication);
    }

    /**
     * 新增支付申请
     * 
     * @param reimbursementPaymentApplication 支付申请
     * @return 结果
     */
    @Override
    public int insertReimbursementPaymentApplication(ReimbursementPaymentApplication reimbursementPaymentApplication)
    {
        return reimbursementPaymentApplicationMapper.insertReimbursementPaymentApplication(reimbursementPaymentApplication);
    }

    /**
     * 修改支付申请
     * 
     * @param reimbursementPaymentApplication 支付申请
     * @return 结果
     */
    @Override
    public int updateReimbursementPaymentApplication(ReimbursementPaymentApplication reimbursementPaymentApplication)
    {
        return reimbursementPaymentApplicationMapper.updateReimbursementPaymentApplication(reimbursementPaymentApplication);
    }

    /**
     * 批量删除支付申请
     * 
     * @param paymentApplicationIds 需要删除的支付申请主键
     * @return 结果
     */
    @Override
    public int deleteReimbursementPaymentApplicationByPaymentApplicationIds(Long[] paymentApplicationIds)
    {
        return reimbursementPaymentApplicationMapper.deleteReimbursementPaymentApplicationByPaymentApplicationIds(paymentApplicationIds);
    }

    /**
     * 删除支付申请信息
     * 
     * @param paymentApplicationId 支付申请主键
     * @return 结果
     */
    @Override
    public int deleteReimbursementPaymentApplicationByPaymentApplicationId(Long paymentApplicationId)
    {
        return reimbursementPaymentApplicationMapper.deleteReimbursementPaymentApplicationByPaymentApplicationId(paymentApplicationId);
    }
}
